package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class Activity {
    /** */
    private Long id;
    /** 主题*/
    private String title;
    /** 类型(单选0/多选1/ 等等)*/
    private Integer type;
    /** 状态(1投票中/0停止投票)*/
    private Boolean status;

    public String getTypeTitle(){
        if (this.type!=null&&this.type==0){
            return "单选题";
        }
        return "多选题";
    }

    @Override
    public String toString(){
        return JSON.toJSONString(this);
    }
}